#include<AT89X52.h>
void Port0_open()
{
P0=0X76;
}
void Port1_close()
{
P1=0XFF;
}

void Func2()
{
char ch2[8]={0X7F,0XBF,0XDF,0XEF,0XF7,0XFB,0XFD,0XFE};
int i;
Port1_close();
Port0_open();
for(i=0;i%8<8;i++)
{
Delay();
P1=ch2[i%8];
}
Port1_close();

}